
***COVARIATES****
global x_tyrc = ""
global x_taxdem= "tyrc_maxage"
global x_taxincLf0 = "tyrc_maxage tyrc_pragiz"

global fe_tyrc = "i.taxyr_cut"
global fe_taxdem = "i.taxyr_cut i.male i.dob_dow "
global fe_taxincLf0 = "i.taxyr_cut i.male i.dob_dow i.tyrc_Lfil_stat0"

*******Primary Sample Restrictions*********
global r_all = "&us_born==1 "

global r_k1 = "${r_all} & birth_order==1 "
global r_k2 = "${r_all} & birth_order>=2 "

global r_elig = " ${r_all}   & tyrc_ipreitcany==1"

forvalues k=1/2 {
	global r_k`n'elig = "${r_elig} ${r_k`n'} "
}

*******Subsamples**********
global r_Lfilers = "& tyrc_L1040==1"
global r_Lnofilers = "& tyrc_L1040==0"

global r_Lmarried = "& tyrc_L1040==1 & tyrc_Lmarried==1"
global r_Lsingle = "& tyrc_L1040==1 & tyrc_Lmarried==0"

global r_male = "& male==1"
global r_female = "& male==0"

global r_black = "& black==1"
global r_hisp = "& hisp==1"
global r_white_non_hisp = "& white_non_hisp==1"

global r_black_male = "& black==1 & male==1"
global r_hisp_male = "& hisp==1 & male==1"
global r_white_non_hisp_male = "& white_non_hisp==1 & male==1"


*******Recentered Tax Year Samples*********
global rp_ob0_predL12 = "& ( inrange(taxyr_cut,1969,1969+2) | inrange(taxyr_cut,1974,1974+2) | inrange(taxyr_cut,1979,1979+2) | inrange(taxyr_cut,1984,1984+2) | inrange(taxyr_cut,1989,1989+2) | inrange(taxyr_cut, 1994, 1995+2) | taxyr_cut>=1998 )"
global rp_predL12 = "& ( inrange(taxyr_cut,1969+1,1969+2) | inrange(taxyr_cut,1974+1,1974+2) | inrange(taxyr_cut,1979+1,1979+2) | inrange(taxyr_cut,1984+1,1984+2) | inrange(taxyr_cut,1989+1,1989+2) | inrange(taxyr_cut, 1995+1, 1995+2) )"

***Recentered Tax Year subsamples***
forvalues yr0=1979/1994 {
	global tyrcs_`yr0' = "taxyr_cut==`yr0'"
	forvalues yr1=1980/1994 {
		global tyrcs_`yr0'_`yr1' = "inrange(taxyr_cut,`yr0',`yr1')" //
	}
}

***State restrictions due to school age cutoff dates ***
global sc_dropany_miss = "&pob!=9 &pob!=10 &pob!=11 &pob!=15 &pob!=22 &pob!=24 &pob!=44 &pob!=50 & pob!=8 & pob!=25 & pob!=34 &pob!=50 & pob!=51"

*** Standard Errors***
global sehdfe_clust_z = "cluster z"

**Other**
global max_parent_year 2005
